<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Create Programme</title>
<meta name="keywords"
	content="paint blog, free templates, website templates, CSS, HTML" />
<meta name="description"
	content="Paint Blog - free blog website template provided by templatemo.com" />
<link href="templatemo_style.css" rel="stylesheet" type="text/css" />
<link href="style_hanh.css" rel="stylesheet" type="text/css" />
<link href="style.css" rel="stylesheet" type="text/css" />
<!--  Free CSS Template is designed by templatemo.com  -->
<!--[if lt IE 7]>
<style type="text/css">

  .date_section, .comment{ behavior: url(iepngfix.htc); }

</style>
<![endif]-->


<script>
	function popupwindow(url, title, w, h) {
		var left = (screen.width / 2) - (w / 2);
		var top = (screen.height / 2) - (h / 2);
		var w = window
				.open(
						url,
						title,
						'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='
								+ w
								+ ', height='
								+ h
								+ ', top='
								+ top
								+ ', left=' + left);
		document.form[0].typeofbusiness.value = "waiting...";

	}
	
	function checkValid() {
		var name = document.getElementById('name').value;
		var check = true;
		if (name == null || name == "") {
			document.getElementById('name').style.border = "1px solid red";
			check = false;
		}
		if (!check) {
			document.location='SaveAction.action';
		} else {
			alert(" Please , input to form full information !");
		}
		return check;
	}
</script>

<style>
.top {
	border: 0px solid #ccc;
	overflow: hidden;
	padding: 0;
	margin: 0;
	padding-bottom: 2px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}

.top-left {
	border: 0px solid #ccc;
	font: bold 14px Arial, Verdana, Helvetica, sans-serif;
	float: left;
	padding: 5px 0;
}

.top-right {
	border: 0px solid #ccc;
	float: right;
	text-align: right;
}

.details1 {
	overflow: hidden;
}

.content-left {
	float: left;
	padding-right: 20px;
	border: 0px solid #ccc;
}

.content-right {
	float: right;
	border: 0px solid #ccc;
}

.frm .field {
	display: table;
	margin: 5px;
}

.frm div label {
	width: 150px;
	word-wrap: break-word;
	display: table-cell;
	vertical-align: middle;
	position: static;
}

.frm textarea {
	width: 260px;
	height: 80px;
}

.lstcbb {
	width: 260px;
	height: 95px;
	overflow-y: auto;
	border: 1px solid #ccc;
	background-color: #fff;
	display: auto;
}
</style>

</head>
<body>
	<%
		if (session.getAttribute("username") == null)
			response.sendRedirect("login.jsp");
	%>
	<%@include file="header.jsp"%>
	<!-- end of menu -->

	<div id="content">
		<div id="mainContainer">
			<div class="box">
				<div id="container-orglst">
					<div id="tabContaier">
						<s:form name="Lookup" action="saveCre" method="post">
							<%-- <div>
					<s:checkbox name="active" id="active" checked="true" style="position:absolute;left:-300px;top:-3000px;"/>
					</div> --%>
							<table width="800" align=center cellpadding="3" cellspacing="2"
								border=0>
								<tr>
									<ul class="tabs" style="width: 100%">
										<td><b><h1>CREATE NEW</h1> </B></td>
										<td></td>
										<td></td>
										<td align=center>
											<!-- <button type="button" onclick="mainForm.active.checked=false;">Deactivate</button> -->
											<div class="top-right include"
												style="width: 400px; float: right; display: inline; margin-right: 5px; margin-bottom: 10px; padding: 0">
												<button type="submit" value="Save" onclick="checkValid()">Save</button>
												<s:url action="listShow" var="urlTag" />
												<s:a href="%{urlTag}">
													<button type="button">Back</button>
												</s:a>
											</div>
										</td>
									</ul>
								</tr>
							</table>

							<div id="tab1" class="tabContents details1">
								<table id="inf" width="800" align=center cellpadding="3"
									cellspacing="2" border=0 id="tableDetail2">
									<tr>
										<div class="field">
											<td><b><label for="org_name">Programme Name:<span
														style="color: red;">*<span></label></B></td>
											<td><input type="text" name="name"></td>
											<td></td>
											<td><b><label for="org_name">Contact</label> </B><input
												type="text" name="contact"> <a
													onclick="popupwindow('ListContact.jsp', 'dsadssa', 650, 600);">Look
														Up </a></td>
										</div>
									</tr>
									<tr>
										<div class="field">
											<td><b><label for="org_name">Descipton : </label></B></td>
											<td><textarea rows="4" name="des"></textarea></td>
											<td></td>
											<td><b></B></td>
										</div>
									</tr>
									<tr>
										<td colspan="3"></td>
									</tr>
								</table>
							</div>
						</s:form>
					</div>
					<!-- end of content right -->

					<div class="cleaner_with_height">&nbsp;</div>
				</div>
			</div>
		</div>
	</div>
	<!-- end of content panel -->

	<%@include file="footer.jsp"%>
	<!--  Free CSS Template is designed by templatemo.com  -->
</html>